Skip to main content

itemIcons

Type

property

Summary

The icons displayed by each segment

Syntax

get the itemIcons of <widget>
set the itemIcons of <widget> to <iconNames>

Description

The icons displayed for each segment in the control when not highlighted. The itemIcons are displayed by the widget when the itemStyle is set to show icons.

The itemIcons must each be one of the predefined graphics provided by the "IconSVG" library. You can get a list of available predefined path names by running put iconNames() in the Message Box. If any of the itemIcons are empty, those segments have no icon when not hilited.

When you set the itemIcons to a string that has fewer icon names than the itemCount, the remaining segments' icons are set to empty (no icon).

When you set the itemIcons to a string that has more icon names than the itemCount, the extra icons are ignored.

property: itemCount, itemStyle, itemHilitedIcons, foreColor, hilitedItem